package com.qs.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.qs.common.entity.Classes;
import com.qs.common.service.ClassesService;
import com.qs.provider.mapper.ClassesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.READ_COMMITTED,timeout = 10000,rollbackFor = Exception.class,readOnly = true)
public class ClassesServiceImpl implements ClassesService {
    @Autowired
    private ClassesMapper classesMapper;
    @Override
    public List<Classes> findAll() {
        return classesMapper.selectAll();
    }
}
